package com.njitt.bysj.mapper;

import com.njitt.bysj.base.BaseMapper;
import com.njitt.bysj.bean.ProjectBean;
import com.njitt.bysj.query.ProjectProductionQuery;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

public interface ProjectBeanMapper extends BaseMapper<ProjectBean, Integer> {

    ProjectBean selectProjectByProjectNo(String projectNo);

    List<ProjectBean> selectByParamsWithProject(ProjectProductionQuery query);

    @MapKey("id")
    List<Map<String, Object>> selectProjectWithProduce();

    ProjectBean selectProjectByStatusAndProjectNo(String projectNo);
}